package com.spring.sso.common.verification;

import com.spring.sso.common.AuthProtocol;
import com.spring.sso.common.enums.VerificationTypeEnum;
import lombok.Data;

/**
 * 手机号修改协议(type = MODIFY_PHONE)
 * @author : pangfuzhong
 * @description
 * @date : 2021/9/30 14:13
 */
@Data
public class PhoneModifyProtocol extends AuthProtocol {

    // 账号(即原手机号)
    private String accountName;

    // 旧手机号验证码
    private String oldPhoneVerificationCode;

    // 新手机号
    private String newAccountName;

    // 新手机号验证码
    private String newPhoneVerificationCode;

    @Override
    public VerificationTypeEnum getVerificationType() {
        return VerificationTypeEnum.MODIFY_PHONE;
    }
}
